package org.jeecg.modules.exPingbiao.mapper;

import java.util.List;
import org.jeecg.modules.exPingbiao.entity.ExPingbiaoExpertDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 评标明细
 * @Author: jeecg-boot
 * @Date:   2024-11-09
 * @Version: V1.0
 */
public interface ExPingbiaoExpertDetailMapper extends BaseMapper<ExPingbiaoExpertDetail> {

  /**
   * 通过主表id删除子表数据
   *
   * @param mainId 主表id
   * @return boolean
   */
	public boolean deleteByMainId(@Param("mainId") String mainId);

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId 主表id
   * @return List<ExPingbiaoExpertDetail>
   */
	public List<ExPingbiaoExpertDetail> selectByMainId(@Param("mainId") String mainId);

    /**
     * 通过主表id删除子表数据
     *
     * @param mainId 主表id
     * @return boolean
     */
    public boolean deleteByMainIdAndBusinessId(@Param("mainId") String mainId,String businessId);

    /**
     * 根据评分ID以及类型查询
     * @param expertId 评分ID，非专家ID
     * @param businessType
     * @return
     */
    List<ExPingbiaoExpertDetail> selectByExpertAndBusinessId(@Param("expertId") String expertId, @Param("businessType") String businessType);

}
